<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class WithdrawAuditRecord
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $user_id
 * @property string $order_number
 * @property int $validbet
 * @property int $withdraw_min_limit
 * @property int $withdraw_max_limit
 * @property int $withdraw_daily_times_limit
 * @property int $withdraw_daily_times_nofee_limit
 * @property int $withdraw_expenese_rate
 * @property int $withdraw_expenese_max_limit
 * @property int $withdraw_fee
 * @property int $withdraw_validbet
 * @property int $nocheck_amount
 * @property int $balance
 * @property int $withdraw_amount
 * @property \Carbon\Carbon $apply_time
 * @property int $coupon_fee
 * @property int $admin_fee
 * @property int $service_fee
 * @property int $total_fee
 * @property bool $is_apply
 * @property bool $is_coupon_pass
 * @property bool $is_principal_pass
 * @property \Carbon\Carbon $created_at
 *
 * @package App\Models
 */
class WithdrawAuditRecord extends Eloquent
{
	protected $table = 'withdraw_audit_record';
	public $timestamps = false;

	protected $casts = [
		'hall_id' => 'int',
		'user_id' => 'int',
		'validbet' => 'int',
		'withdraw_min_limit' => 'int',
		'withdraw_max_limit' => 'int',
		'withdraw_daily_times_limit' => 'int',
		'withdraw_daily_times_nofee_limit' => 'int',
		'withdraw_expenese_rate' => 'int',
		'withdraw_expenese_max_limit' => 'int',
		'withdraw_fee' => 'int',
		'withdraw_validbet' => 'int',
		'nocheck_amount' => 'int',
		'balance' => 'int',
		'withdraw_amount' => 'int',
		'coupon_fee' => 'int',
		'admin_fee' => 'int',
		'service_fee' => 'int',
		'total_fee' => 'int',
		'is_apply' => 'bool',
		'is_coupon_pass' => 'bool',
		'is_principal_pass' => 'bool'
	];

	protected $dates = [
		'apply_time'
	];

	protected $fillable = [
		'hall_id',
		'user_id',
		'order_number',
		'validbet',
		'withdraw_min_limit',
		'withdraw_max_limit',
		'withdraw_daily_times_limit',
		'withdraw_daily_times_nofee_limit',
		'withdraw_expenese_rate',
		'withdraw_expenese_max_limit',
		'withdraw_fee',
		'withdraw_validbet',
		'nocheck_amount',
		'balance',
		'withdraw_amount',
		'apply_time',
		'coupon_fee',
		'admin_fee',
		'service_fee',
		'total_fee',
		'is_apply',
		'is_coupon_pass',
		'is_principal_pass'
	];
}
